package com.xxxt.entity;

import java.util.List;

//学院实体类
public class College {
private String collegeId;//学院id
	
private String collegeName;//学院名

private School school;//与学院关联的学校实体类

private List<Specialty> specialties;//与学院关联的专业集合

public College(String collegeId, String collegeName, School school, List<Specialty> specialties) {
	super();
	this.collegeId = collegeId;
	this.collegeName = collegeName;
	this.school = school;
	this.specialties = specialties;
}
public College(String collegeId, String collegeName, School school) {
	super();
	this.collegeId = collegeId;
	this.collegeName = collegeName;
	this.school = school;
}

public College( String collegeName, School school, List<Specialty> specialties) {
	super();
	this.collegeName = collegeName;
	this.school = school;
	this.specialties = specialties;
}

public String getCollegeId() {
	return collegeId;
}

public void setCollegeId(String collegeId) {
	this.collegeId = collegeId;
}

public String getCollegeName() {
	return collegeName;
}

public void setCollegeName(String collegeName) {
	this.collegeName = collegeName;
}

public School getSchool() {
	return school;
}

public void setSchool(School school) {
	this.school = school;
}



public List<Specialty> getSpecialties() {
	return specialties;
}

public void setSpecialties(List<Specialty> specialties) {
	this.specialties = specialties;
}

public College() {}

@Override
public String toString() {
	return "College [collegeId=" + collegeId + ", collegeName=" + collegeName + ", school=" + school + ", specialties="
			+ specialties + "]";
}



}
